package com.vegetable.modules.entity.allocation.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.modules.entity.baseData.po.BaseQueryPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 分配回款查询参数DTO
 * </p>
 *
 * @author Qoder
 * @since 2025-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AllocationCollectionQueryDTO对象", description="分配回款查询参数DTO")
public class AllocationCollectionQueryDTO extends BaseQueryPO {

    @ApiModelProperty(value = "单据编号")
    private String docNo;

    @ApiModelProperty(value = "回款完成状态 0未完成，1已完成")
    private Integer collectionCompleteStatus;

    @ApiModelProperty(value = "是否有扣款 0没扣款，1有扣款")
    private Integer hasDeduction;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "客户ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long customerId;

    @ApiModelProperty(value = "流水回款金额")
    private BigDecimal totalAmount;
}